package com.fei.k8s.controller;

import com.fei.k8s.entity.Tbuser;
import com.fei.k8s.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {

    @Resource
    UserService userService;

    @GetMapping("/users")
    public List<Tbuser> queryUsers(){
        return userService.queryUsers();
    }
}
